﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数字");
            int A = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数字");
            int B = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入运输符号");
            string str = Console.ReadLine();

            Calculate calculate = new Calculate(A,B);

            switch (str)
            {
                case "+":
                    SUM sUM = new SUM(A,B);
                    sUM.DisplayResult();
                    break;
                case "-":
                    SUB sUB = new SUB(A, B);
                    sUB.DisplayResult();
                    break;
                case "*":
                    MUL mUL = new MUL(A, B);
                    mUL.DisplayResult();
                    break;
                case "/":
                    DIV dIV = new DIV(A, B);
                    dIV.DisplayResult();
                    break;
            }


        }
    }
}
